#!/usr/bin/env python

import os,sys

f = open('/home/managing/msip5/qps.log', 'r')
qps = int(f.read())
f.close()

if qps >= 1000:
	print "GETQPS CRITICAL: Query per second is {0}".format(qps)
	sys.exit(2)
elif qps >= 200:
	print "GETQPS WARNING: Query per second is {0}".format(qps)
	sys.exit(1)
else:
	
	print "GETQPS OK: Query per second is {0}".format(qps)
	sys.exit(0)
